package org.jeecg.modules.demo.navigation.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.navigation.entity.Information;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * @Description: 信息表
 * @Author: jeecg-boot
 * @Date:   2019-09-18
 * @Version: V1.0
 */
public interface IInformationService extends IService<Information> {

	public List<Information> selectByMainId(String mainId);
	public int getTypeCount(String typeStr);//查询类型数量
	public boolean updateStateById(String id,String state);//更改通知状态
	public boolean updateVisitsById(@Param("id")String id);//更新浏览量

	/*
	根据类型
	* 分页查询信息*/
	public List<Information> getInformationPageByType(@Param("typeStr")String typeStr, @Param("noPage") Integer noPage, @Param("sizePage") Integer sizePage,Integer uPage);
}
